<template>
    <button @click='fn'>
      <!-- component  keep-alive  slot -->
      <slot>默认值</slot>
    </button>
</template>
<script>
// @ is an alias to /src
export default {
    name: 'XXX',
    props:['qqq','www'],
    inject:['obj'],
    data() {
        return {
        
        }
    },
    methods: {
      fn(e){
        console.log(this)
        this.$emit('click',e)
      }
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>